// @ts-ignore
/* eslint-disable */

/**
 * 请勿随意修改。
 * */

import { request, type RequestOptions } from '@/utils/request'

/** 话题库列表获取一级分类列表 GET /meereen/topic/tGetClassificationListFirst */
export async function topicFirst(params: API.PageParams, options?: RequestOptions) {
  return request(`/meereen/topic/tGetClassificationListFirst`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 话题库列表获取二级分类列表 POST /meereen/topic/tGetClassificationListSecond */
export async function topicSecond(body: API.PageParams, options?: RequestOptions) {
  return request(`/meereen/topic/tGetClassificationListSecond?pageNum=${body.pageNum}&pageSize=${body.pageSize}`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 话题库话题列表 GET /meereen/topic/getTopicList */
export async function topicList(body: API.PageParams, options?: RequestOptions) {
  return request(`/meereen/topic/getTopicList`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 话题库话题列表 GET /meereen/topic/getTopicList */
export async function topicContentList(params: API.TopicContentList, options?: RequestOptions) {
  return request(`/meereen/topic/getTopicContentListByTopicId`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 新增话题 POST /meereen/topic/insertTopic */
export async function topicInsert(body: API.TopicInsert, options?: RequestOptions) {
  return request(`/meereen/topic/insertTopic`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 审核话题列表 POST /meereen/topic/getTopicList?pageNum=${data.pageDTO.pageNum}&pageSize=${data.pageDTO.pageSize} */
export async function topicExamineList(body: API.PagesParams, options?: RequestOptions) {
  return request(`/meereen/topic/getTopicList`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 审核话题 POST /meereen/topic/getTopicList?pageNum=${data.pageDTO.pageNum}&pageSize=${data.pageDTO.pageSize} */
export async function topicExamine(body: API.PagesParams, options?: RequestOptions) {
  return request(`/meereen/topic/auditTopic`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}

/** 话题导出 POST /meereen/topic/export */
export async function topicExport(body: API.PagesParams, options?: RequestOptions) {
  return request(`/meereen/topic/export`, {
    method: 'POST',
    data: body,
    ...(options || {
      contentType: 'multipart/form-data',
      responseType: 'blob',
      isReturnResult: false
    })
  })
}


/** 创建用户 GET /meereen/topic/echoTopicAuditUser */
export async function topicCreatdUser(params, options?: RequestOptions) {
  return request(`/meereen/topic/echoTopicAuditUser`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 科室列表 GET /meereen/topic/echoTopicAuditUser */
export async function topicDepartmentList(params, options?: RequestOptions) {
  return request(`/meereen/topic/tGetClassificationListFirst`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 修改话题 POST /meereen/topic/updateTopic（meereen:topic:edit） */
export async function topicUpdateTopic(body, options?: RequestOptions) {
  return request(`/meereen/topic/updateTopic`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}

/** 推送话题选择医生回显 GET /meereen/topic/pushTopicsSelectDoctorEcho */
export async function topicEchoDoctor(params, options?: RequestOptions) {
  return request(`/meereen/topic/pushTopicsSelectDoctorEcho`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}

/** 修改话题内容回显 GET /meereen/content/updateContentInfo */
export async function topicEchoContentInfo(params, options?: RequestOptions) {
  return request(`/meereen/content/updateContentInfo`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}

/** 修改话题内容 POST /meereen/content/updateContent */
export async function topicUpdateContent(body, options?: RequestOptions) {
  return request(`/meereen/content/updateContent`, {
    method: 'POST',
    data:body,
    ...(options || {})
  })
}






